package cate.game.pvp.throne.msg;

import cate.game.pvp.throne.data.ko.TBKoData;
import cate.game.pvp.throne.data.trial.TBTrialData;
import cate.game.pvp.throne.dto.TBGroupDataDTO;
import easy.java.dev.note.NoteField;

import java.util.HashMap;
import java.util.Map;

public class TBPartDataNotice {

	@NoteField("各个分组的数据")
	public Map<Integer, TBGroupDataDTO> groupMap = new HashMap<>();

	public TBPartDataNotice() {
	}


	public void setTrial(int levelGroup, TBTrialData trial){
		groupMap.computeIfAbsent(levelGroup, TBGroupDataDTO::new).trial = trial;
	}

	public void setKo(int levelGroup, TBKoData ko) {
		groupMap.computeIfAbsent(levelGroup, TBGroupDataDTO::new).ko = ko;
	}
}
